﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;
using Infrastructure.Silverlight.Services.Navigation;

namespace Skynet.RiaClient
{
    public partial class Shell : UserControl
    {
        [Dependency]
        public IUnityContainer ContainerService { get; set; }

        public Shell()
        {
            InitializeComponent();
            App.Current.Host.Content.FullScreenOptions = System.Windows.Interop.FullScreenOptions.StaysFullScreenWhenUnfocused;

        }

        private void Link1_Click(object sender, RoutedEventArgs e)
        {
            this.ContainerService.Resolve<INavigationService>().Navigate<Skynet.SLFoundation.VideoConference.VideoConferenceView>(Infrastructure.Silverlight.Constants.RegionNames.BodyRegion);
        }

        private void lbExamCategories_Click(object sender, RoutedEventArgs e)
        {
            this.ContainerService.Resolve<INavigationService>().Navigate<Skynet.SLAdministration.Views.MgmCategories.MgmCategoriesView>(Infrastructure.Silverlight.Constants.RegionNames.BodyRegion);
        }
    }
}
